package com.lagou.advice;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Component
//@Aspect
public class MyAdvice {
//    @Pointcut("execution(* com.lagou.service.impl.ArticleServiceImpl.save(..))")
//    public void myPoint() {
//    }

//    @Before("execution(* com.lagou.service.impl.ArticleServiceImpl.save(..))")
    public void before(){
        System.out.println("前置增强....");
    }
}
